package messageMeUtility.chats;

import messageMeUtility.interfaces.IChat;

import java.util.List;
import java.util.UUID;

import messageMeUtility.interfaces.IMessage;
import messageMeUtility.interfaces.IUser;

public class AbstactChat implements IChat {

	String Id = "";
	List<IUser> users = null;
	List<IMessage> messages = null;

	public AbstactChat() {
		this.setId();
	}

	public String getId() {
		return this.Id;
	}

	public void setId(String id) {
		this.Id = id;
	}

	public void setId() {
		UUID uuid = UUID.randomUUID();
		this.Id = uuid.toString();
	}

	public List<IUser> getUsers() {
		return this.users;
	}

	public void setUsers(List<IUser> users) {
		this.users = users;
	}

	public List<IMessage> getMessages() {
		return this.messages;
	}

	public void setMessages(List<IMessage> messages) {
		this.messages = messages;
	}

}
